/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.threads;

import java.util.logging.Logger;

/**
 * @author WORKSPOT2
 */
public class RunnableExample implements Runnable {
    static Logger logger = Logger.getLogger(RunnableExample.class.getName());
    private int start;

    public RunnableExample(int start) {
        this.start = start;
    }

    @Override
    public void run() {
        try {
            while (true) {
                for (int i = 0; i < 5; i++) {
                    start = start * (i + 1);
                   logger.warning("Start is " + start);
                }
                Thread.sleep(1000);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
